git clone --depth=1 https://ghproxy.com/https://github.com/Bash-it/bash-it.git ~/.bash_it && \
  bash ~/.bash_it/install.sh --silent
mkdir -p /etc/apt
sed -i "s@http://.*archive.ubuntu.com@http://repo.huaweicloud.com@g" /etc/apt/sources.
curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
  apt-get upgrade -y && \
  apt-get install -y nodejs texlive-latex-extra texlive-xetex && \
  rm -rf /var/lib/apt/lists/*

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple 
    # 设置python的包安装镜像为清华源
#export NODE_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/ 
    # 设置Npm的包安装镜像为清华原
#echo '已经修改了npm镜像源'
#npm install -g npm 
    # 升级npm
#npm install -g yarn 
#yarn config set registry https://registry.npm.taobao.org/ 
    # 设置yarn的仓库为淘宝源
pip install --upgrade pip && \
    pip install --upgrade \
    jupyterlab>=2.0.0 \
    ipywidgets \
    jedi==0.15.2 \ 
    # jupyterlab-lsp does not support 0.17
    jupyterlab_latex \
    plotly \
    bokeh \
    numpy \
    scipy \
    numexpr \
    patsy \
    scikit-learn \
    scikit-image \
    matplotlib \
    ipython \
    pandas \
    sympy \
    seaborn \
    nose \
    jupyter-lsp \
    python-language-server \
    jupyterlab-git && \
  jupyter labextension install \
    @jupyter-widgets/jupyterlab-manager \
    @jupyterlab/latex \
    jupyterlab-drawio \ 
    jupyterlab-plotly \
    @bokeh/jupyter_bokeh \
    @krassowski/jupyterlab-lsp \
    @jupyterlab/git \
    jupyterlab-spreadsheet
pip install https://ghproxy.com/https://raw.githubusercontent.com/solider245/Jupyterlab/master/jupyterlab_language_pack_zh_CN-0.0.1.dev0-py2.py3-none-any.whl
